<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Struct query</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../index.html" title="ODTONE 0.4">
<link rel="up" href="../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.dns.resolver_hpp" title="Header &lt;/home/carlos/Projectos/odtone/inc/odtone/net/dns/resolver.hpp&gt;">
<link rel="prev" href="message.html" title="Class message">
<link rel="next" href="callback_info.html" title="Struct callback_info">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="'ODTONE - Open Dot Twenty One'" width="100" height="100" src="../.././images/logo.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="message.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.dns.resolver_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="callback_info.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="odtone.dns.query"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct query</span></h2>
<p>odtone::dns::query</p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.dns.resolver_hpp" title="Header &lt;/home/carlos/Projectos/odtone/inc/odtone/net/dns/resolver.hpp&gt;">/home/carlos/Projectos/odtone/inc/odtone/net/dns/resolver.hpp</a>&gt;

</span>
<span class="keyword">struct</span> <a class="link" href="query.html" title="Struct query">query</a> <span class="special">{</span>

  <span class="comment">// <a class="link" href="query.html#idp4560984-bb">public member functions</a></span>
  <span class="keyword">bool</span> <a class="link" href="query.html#idp4561168-bb"><span class="keyword">operator</span><span class="special">==</span></a><span class="special">(</span><span class="keyword">const</span> <span class="keyword">struct</span> <a class="link" href="query.html" title="Struct query">query</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="query.html#odtone.dns.querypublic-data-members">public data members</a></span>
  <span class="keyword">void</span> <span class="special">*</span> <a class="link" href="query.html#odtone.dns.query.ctx"><span class="identifier">ctx</span></a><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="query.html#odtone.dns.query.name"><span class="identifier">name</span></a><span class="special">;</span>
  <span class="identifier">uint16</span> <a class="link" href="query.html#odtone.dns.query.qtype"><span class="identifier">qtype</span></a><span class="special">;</span>
  <span class="identifier">uint16</span> <a class="link" href="query.html#odtone.dns.query.tid"><span class="identifier">tid</span></a><span class="special">;</span>
  <span class="identifier">time_t</span> <a class="link" href="query.html#odtone.dns.query.expire"><span class="identifier">expire</span></a><span class="special">;</span>
  <a class="link" href="message.html" title="Class message">message</a> <a class="link" href="query.html#odtone.dns.query.dns_message"><span class="identifier">dns_message</span></a><span class="special">;</span>
  <span class="identifier">dns_callback_t</span> <a class="link" href="query.html#odtone.dns.query.callback"><span class="identifier">callback</span></a><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="idp19605296"></a><h2>Description</h2>
<p>Struct to store query information. </p>
<div class="refsect2">
<a name="idp19605632"></a><h3>
<a name="idp4560984-bb"></a><code class="computeroutput">query</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="idp4561168-bb"></a><span class="keyword">operator</span><span class="special">==</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">struct</span> <a class="link" href="query.html" title="Struct query">query</a> <span class="special">&amp;</span> other<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Check if the query is equal to another query.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">other</code></span></p></td>
<td><p>The query to compare with. </p></td>
</tr></tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>True if they are equal or false otherwise. </p></td>
</tr>
</tbody>
</table></div>
</li></ol></div>
</div>
<div class="refsect2">
<a name="idp19613200"></a><h3>
<a name="odtone.dns.querypublic-data-members"></a><code class="computeroutput">query</code> 
        public
       public data members</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <span class="special">*</span> <a name="odtone.dns.query.ctx"></a><span class="identifier">ctx</span><span class="special">;</span></pre>
<p>Context. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="odtone.dns.query.name"></a><span class="identifier">name</span><span class="special">;</span></pre>
<p>Host name. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">uint16</span> <a name="odtone.dns.query.qtype"></a><span class="identifier">qtype</span><span class="special">;</span></pre>
<p>Query type. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">uint16</span> <a name="odtone.dns.query.tid"></a><span class="identifier">tid</span><span class="special">;</span></pre>
<p>UDP DNS transaction ID. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">time_t</span> <a name="odtone.dns.query.expire"></a><span class="identifier">expire</span><span class="special">;</span></pre>
<p>Time when this query expire. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="message.html" title="Class message">message</a> <a name="odtone.dns.query.dns_message"></a><span class="identifier">dns_message</span><span class="special">;</span></pre>
<p>Response DNS message. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">dns_callback_t</span> <a name="odtone.dns.query.callback"></a><span class="identifier">callback</span><span class="special">;</span></pre>
<p>User callback routine. </p>
</li>
</ol></div>
</div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2009-2012 Universidade
      Aveiro<br>Copyright &#169; 2009-2012 Instituto
      de Telecomunica&#231;&#245;es - P&#243;lo Aveiro<p>
        This software is distributed under a license. The full license agreement
        can be found in the LICENSE in this distribution. This software may not be
        copied, modified, sold or distributed other than expressed in the named license
        agreement. This software is distributed without any warranty.
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="message.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.dns.resolver_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="callback_info.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>
